import request from '@/utils/request'

export function getSeckill(id) {
  return request({
    url: `/coupon/seckill/getById/${id}`,
    method: 'post'
  })
}

export function saveSeckill(data) {
  return request({
    url: '/coupon/seckill/save',
    method: 'post',
    data
  })
}

export function updateSeckill(data) {
  return request({
    url: '/coupon/seckill/update',
    method: 'post',
    data
  })
}

export function seckillList(params) {
  return request({
    url: '/coupon/seckill/find',
    method: 'post',
    params
  })
}

export function deleteSeckill(ids) {
  return request({
    url: '/coupon/seckill/delete',
    method: 'post',
    data: ids
  })
}
